FROM openjdk:8-jdk-alpine
MAINTAINER "qik"<1755979775@qq.com>
ADD . /app
WORKDIR /app/
#RUN mvn package -P pro -Dmaven.test.skip=true
ENV JAVA_OPTS="\
-XX:SurvivorRatio=8 \
-XX:+UseConcMarkSweepGC \
"
EXPOSE 80
EXPOSE 443
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar target/zuul-0.0.1-SNAPSHOT.jar" ]